/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

/**
 *
 * @author 
 */
public class PrincipalView {

    public static void main(String args[]) {
        System.out.println("============O que deseja fazer?============");
        System.out.println("1 - Alunos");
        System.out.println("2 - Professores");
        System.out.println("3 - Disciplinas");
        System.out.println("4 - Turmas");
        System.out.println("5 - Atividades");
        System.out.println("0 - Sair");
        int op = 0;
        op = Console.readByte();
        switch (op) {
            case 0:
                System.exit(0);
                break;
            case 1:
                new AlunoView().menu();
                break;
            case 2:
                new ProfessorView().menu();
                break;
            case 3:
                new DisciplinaView().menu();
                break;
            case 4:
                new TurmaView().menu();
                break;
            case 5:
                new AtividadeView().menu();
                break;
            default:
                System.out.println("Opção inválida");
        }
        main(args);
    }

   
}
